package io.renren.controller;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class BaseController {
    public  Object  getUserId(HttpServletRequest request){
        return  request.getAttribute("userId");
    }
}
